BIN:ProgressBar
CC:=gcc
#SRC:=$(shell ls *.c)
SRC:=$(wildcard *.c)
OBJ:=$(SRC:.c=.o)
LFLAGS:=-o
FLAGS:=-c
RM:=rm -rf

$(BIN):$(OBJ)
	@$(CC) $(LFLAGS) $@ $^
	@echo "linking ... $^ to $@"
%.o:%.c
	@$(CC) $(FLAGS) $<
	@echo "compling ... $< to $@"
.PHONY:clean
clean:
	@$(RM) $(BIN)

